﻿{% extends "fnr/base.html" %}
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
  - http://heavyz.blogspot.com/
  - http://buggarden.blogspot.com/

  Displays a form for adding a new resto.
  
  Created on 2008-08-18.
  $Id: add_resto.html 255 2008-10-29 17:58:38Z heavyzheng $
-->
{% endcomment %}

{# ---------------------------------------------------------------------------------------------- #}

{% block html_head %}

<title>Add a new resto :: Foods N' Roses</title>
<script type="text/javascript">//<![CDATA[

  function closeMessage() {
    $(".message").hide("slow");
  }

//]]></script>

{% endblock %}{# html_head #}

{# ---------------------------------------------------------------------------------------------- #}

{% block content %}

{% if error %}
  <div class="error message">
    {{ error }}
    <a href="javascript:void(0);" onclick="closeMessage();">[close]</a>
  </div>
{% endif %}

<h2>Add a new resto</h2>

<form method="POST" action=".">
  <table class="noborder" width="100%">
    <tr>
      <td class="nowrap" width="1%" align="right">Resto name:</td>
      <td class="nowrap">
        <input name="name" type="text" size="25"/>
        aka. <input name="aka" type="text" size="25"/>
      </td>
    </tr>
    <tr>
      <td class="nowrap" width="1%" align="right">Address:</td>
      <td class="nowrap">
        <input name="address" type="text" size="60"/>
      </td>
    </tr>
    <tr>
      <td class="nowrap" width="1%" align="right">Post code:</td>
      <td class="nowrap">
        <input name="post_code" type="text" size="60"/>
      </td>
    </tr>
    <tr>
      <td class="nowrap" width="1%" align="right">City:</td>
      <td class="nowrap">
        <input name="city" type="text" size="60"/>
      </td>
    </tr>
    <tr>
      <td></td>
      <td class="nowrap">
        <input type="submit" value="Register"/>
        Or, <a href="/fnr/">cancel and go back</a>.
      </td>
    </tr>
  </table>
</form>

{% endblock %}{# content #}

